/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;
//
//import anet.channel.strategy.dispatch.DispatchConstants;
//import com.taobao.accs.common.Constants;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class LoginEntity {
    @NotNull
    private final List<JcdsUserChild> jcdsUserChildList;
    @NotNull
    private final Object loginInfo;
    @NotNull
    private final String loginSessionId;
    private final boolean newReg;
    @NotNull
    private final UserInfo userInfo;

    public LoginEntity(@NotNull Object loginInfo, @NotNull String loginSessionId, boolean z, @NotNull UserInfo userInfo, @NotNull List<JcdsUserChild> jcdsUserChildList) {
        Intrinsics.checkNotNullParameter(loginInfo, "loginInfo");
        Intrinsics.checkNotNullParameter(loginSessionId, "loginSessionId");
        Intrinsics.checkNotNullParameter(userInfo, "userInfo");
        Intrinsics.checkNotNullParameter(jcdsUserChildList, "jcdsUserChildList");
        this.loginInfo = loginInfo;
        this.loginSessionId = loginSessionId;
        this.newReg = z;
        this.userInfo = userInfo;
        this.jcdsUserChildList = jcdsUserChildList;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ LoginEntity copy$default(LoginEntity loginEntity, Object obj, String str, boolean z, UserInfo userInfo, List list, int i2, Object obj2) {
        if ((i2 & 1) != 0) {
            obj = loginEntity.loginInfo;
        }
        if ((i2 & 2) != 0) {
            str = loginEntity.loginSessionId;
        }
        if ((i2 & 4) != 0) {
            z = loginEntity.newReg;
        }
        if ((i2 & 8) != 0) {
            userInfo = loginEntity.userInfo;
        }
        if ((i2 & 16) != 0) {
            list = loginEntity.jcdsUserChildList;
        }
        return loginEntity.copy(obj, str, z, userInfo, list);
    }

    @NotNull
    public final Object component1() {
        return this.loginInfo;
    }

    @NotNull
    public final String component2() {
        return this.loginSessionId;
    }

    public final boolean component3() {
        return this.newReg;
    }

    @NotNull
    public final UserInfo component4() {
        return this.userInfo;
    }

    @NotNull
    public final List<JcdsUserChild> component5() {
        return this.jcdsUserChildList;
    }

    @NotNull
    public final LoginEntity copy(@NotNull Object loginInfo, @NotNull String loginSessionId, boolean z, @NotNull UserInfo userInfo, @NotNull List<JcdsUserChild> jcdsUserChildList) {
        Intrinsics.checkNotNullParameter(loginInfo, "loginInfo");
        Intrinsics.checkNotNullParameter(loginSessionId, "loginSessionId");
        Intrinsics.checkNotNullParameter(userInfo, "userInfo");
        Intrinsics.checkNotNullParameter(jcdsUserChildList, "jcdsUserChildList");
        return new LoginEntity(loginInfo, loginSessionId, z, userInfo, jcdsUserChildList);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof LoginEntity)) {
            return false;
        }
        LoginEntity loginEntity = (LoginEntity) obj;
        return Intrinsics.areEqual(this.loginInfo, loginEntity.loginInfo) && Intrinsics.areEqual(this.loginSessionId, loginEntity.loginSessionId) && this.newReg == loginEntity.newReg && Intrinsics.areEqual(this.userInfo, loginEntity.userInfo) && Intrinsics.areEqual(this.jcdsUserChildList, loginEntity.jcdsUserChildList);
    }

    @NotNull
    public final List<JcdsUserChild> getJcdsUserChildList() {
        return this.jcdsUserChildList;
    }

    @NotNull
    public final Object getLoginInfo() {
        return this.loginInfo;
    }

    @NotNull
    public final String getLoginSessionId() {
        return this.loginSessionId;
    }

    public final boolean getNewReg() {
        return this.newReg;
    }

    @NotNull
    public final UserInfo getUserInfo() {
        return this.userInfo;
    }

    public int hashCode() {
        int hashCode = ((this.loginInfo.hashCode() * 31) + this.loginSessionId.hashCode()) * 31;
        boolean z = this.newReg;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        return ((((hashCode + i2) * 31) + this.userInfo.hashCode()) * 31) + this.jcdsUserChildList.hashCode();
    }

    @NotNull
    public String toString() {
        return "LoginEntity(loginInfo=" + this.loginInfo + ", loginSessionId=" + this.loginSessionId + ", newReg=" + this.newReg + ", userInfo=" + this.userInfo + ", jcdsUserChildList=" + this.jcdsUserChildList + ')';
    }
}